/**
 * @Title: StockModel.java
 * @Description: TODO(用一句话描述该文件做什么)
 * @author 张鑫
 * @phone 17561783855
 * @date 2019年4月15日
 */
package com.fortune.rainshinecommon.model.service;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fortune.rainshinecommon.base.BaseModel;
import com.fortune.rainshinecommon.model.ProductModel;

/**
 * @ClassName: StockModel
 * @Description: TODO(库存)
 * @author 张鑫
 * @phone 17561783855
 * @date 2019年4月15日
 *
 */
@TableName("stores")
public class StockModel extends BaseModel {

    private static final long serialVersionUID = 7676750112416925031L;

    private Integer productId;//产品id
    private Integer shopId;//门店id
    private Integer productAmount;//产品数量
    private Integer warningNum;//预警数量

    @TableField(exist = false)
    private Integer method;//1--增加；2--减少
    @TableField(exist = false)
    private ProductModel product;//产品详情
    @TableField(exist = false)
    private Integer purchaseNum;//操作产品数量

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Integer getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(Integer productAmount) {
        this.productAmount = productAmount;
    }

    public Integer getWarningNum() {
        return warningNum;
    }

    public void setWarningNum(Integer warningNum) {
        this.warningNum = warningNum;
    }

    public Integer getMethod() {
        return method;
    }

    public void setMethod(Integer method) {
        this.method = method;
    }

    public ProductModel getProduct() {
        return product;
    }

    public void setProduct(ProductModel product) {
        this.product = product;
    }

    public Integer getPurchaseNum() {
        return purchaseNum;
    }

    public void setPurchaseNum(Integer purchaseNum) {
        this.purchaseNum = purchaseNum;
    }

    public StockModel() {
        super();
    }

    public StockModel(Integer productId, Integer shopId, Integer productAmount, Integer warningNum) {
        super();
        this.productId = productId;
        this.shopId = shopId;
        this.productAmount = productAmount;
        this.warningNum = warningNum;
    }


}
